class Dog():
    tooth = 10

wangcai = Dog()
xiaohei = Dog()
#通过实例对象访问类属性
print(wangcai.tooth)

print(xiaohei.tooth)

#通过类对象访问类属性
print(Dog.tooth)